﻿using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using System.Xml;

public class TestLoadTreeView : MonoBehaviour
{
    public TreeView m_treeView;
    public TextAsset m_textXml;

	void Start() 
	{
        if(m_treeView && m_textXml)
        {
            XmlDocument doc = new XmlDocument();
            doc.LoadXml(m_textXml.text);
            m_treeView.InitNodesFromXml(doc.DocumentElement);
        }
	}
}
